home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / bumpcopter2.swf / scripts / frame_24 / PlaceObject2_51_91 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2006-06-13  |  775 b   |  38 lines

  1. onClipEvent(enterFrame){
  2.    if(Key.isDown(39))
  3.    {
  4.       _root.xSpeed += _root.speedPlus;
  5.    }
  6.    if(_root.xSpeed >= _root.speedMax)
  7.    {
  8.       _root.xSpeed = _root.speedMax;
  9.    }
  10.    if(Key.isDown(37))
  11.    {
  12.       _root.xSpeed -= _root.speedPlus;
  13.    }
  14.    if(_root.xSpeed <= _root.speedMin)
  15.    {
  16.       _root.xSpeed = _root.speedMin;
  17.    }
  18.    if(Key.isDown(38))
  19.    {
  20.       _root.ySpeed -= _root.speedPlus;
  21.    }
  22.    if(_root.ySpeed <= _root.speedMin)
  23.    {
  24.       _root.ySpeed = _root.speedMin;
  25.    }
  26.    if(Key.isDown(40))
  27.    {
  28.       _root.ySpeed += _root.speedPlus;
  29.    }
  30.    if(_root.ySpeed >= _root.speedMax)
  31.    {
  32.       _root.ySpeed = _root.speedMax;
  33.    }
  34.    _Y = _Y + _root.ySpeed;
  35.    _X = _X + _root.xSpeed;
  36.    _rotation = _root.xSpeed * 2;
  37. }
  38.